<?php foreach ($view->newcomments as $comments) { ?>
    <?php foreach ($comments as $c) { ?>

        <div class="bg_img_small">
            <div class="black_bg2" id="home-total-like-<?php echo $c['data_id']; ?>">
                <?php echo $c['total_like']; ?>
            </div>
            <div class="black_bg1"><?php echo substr($c['name'], 0, 20); ?><?php if (strlen($c['name']) > 15) {
            echo "...";
        } ?></div>

            <a href="javascript:facebooktab.showLikeLightbox(<?php echo $c['data_id']; ?>);">
                <div style="height: 98px;overflow: hidden;">
                    <img src="<?php echo $c['facebook_user_picture']; ?>" alt="" class="" style="width: 151px;" />
                </div>                
            </a>
            <div id="like-area-<?php echo $c['data_id']; ?>" width="90" align="left" valign="middle" style="vertical-align: middle;text-align: center;padding-top: 2px;">
            <?php if(!$view->isEndOfContest) { ?>
                <?php if ($view->isLogined && ($c['is_liked'] > 0)) { ?>
                            <a href="javascript:contestapp.unlikecomment(<?php echo $c['data_id']; ?>)">
                                <img src="<?php echo $view->config['template_url']; ?>assets/img/760/stemed_btn_.png" alt="" />
                            </a>
                <?php } else { ?>
                            <a href="javascript:contestapp.likecomment(<?php echo $c['data_id']; ?>)">
                                <img src="<?php echo $view->config['template_url']; ?>assets/img/760/stam_btn.png" alt="" />
                            </a>
                <?php } ?>  
            <?php } else { ?>  
                <a href="javascript:contestapp.unlikecomment(<?php echo $c['data_id']; ?>)">
                    <img src="<?php echo $view->config['template_url']; ?>assets/img/760/stemed_btn_.png" alt="" />
                </a>
            <?php } ?>   
            </div>

        </div>
    <?php } ?>
<?php } ?> 
<div style="clear:left"></div>

<div class="mc">
    <!--
    <div class="bg_social">
        <table border="0">
            <tr>
                <td style="vertical-align: middle; padding-left: 5px;">  
                    <?php 

                    $likeURL = $view->config['global_facebook_like_url'];

                    ?>
                    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode($likeURL); ?>&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>
                </td>
                <td style="vertical-align: middle;">
                    <g:plusone size="medium" href="<?php echo $view->config['global_google_plus_url'];?>"></g:plusone>
                </td>
            </tr>
        </table>
    </div>
    -->
    <?php if($view->pagination['numberOfPage'] > 1){ ?>
    <ul class="pagein">
        <?php for($i = 1; $i <= $view->pagination['numberOfPage'];$i++){ ?>
            <li><a href="?action=vote&p=<?php echo $i;?>" <?php if($view->pagination['currentPage'] == $i){ echo ' class="curr2"'; }?>><?php echo $i;?></a></li>
        <?php } ?>        
    </ul>
    <?php } ?>
    <div style="clear:both"></div>
</div>

<?php if($view->app_data) {?>
<script type="text/javascript">
    facebooktab.showLikeLightbox(<?php echo $view->app_data;?>);
</script>
<?php } ?>

<script type="text/javascript">
    contestapp.images.unlike = "<?php echo $this->config['template_url'];?>assets/img/760/stemed_btn_.png";
</script>